#ifndef _RESPONSE_REQUEST_H_
#define _RESPONSE_REQUEST_H_

#include "parm_cfg.h"
#include "storage_interface.h"
#include "esp_http_server.h"

#define JH_WEB_VERSION      "V0.6_20241223"

/* 响应登录界面 */
int response_post_login(httpd_req_t *req);
/* 设置登录密码 */
int response_post_set_login(httpd_req_t *req);

/* 响应串口信息 */
int response_get_uart_config(httpd_req_t *req);
int response_post_uart_config(httpd_req_t *req);

/* 响应网络信息 */
int response_get_net_info(httpd_req_t *req);
int response_get_net_config(httpd_req_t *req);
int response_post_net_config(httpd_req_t *req);

/* 响应凭证信息 */
int response_get_voucher_config(httpd_req_t *req);
int response_post_voucher_config(httpd_req_t *req);

/* 响应NTP信息 */
int response_get_ntp_config(httpd_req_t *req);
int response_post_ntp_config(httpd_req_t *req);

/* 响应OTA信息 */
int response_get_ota_config(httpd_req_t *req);
int response_post_ota_config(httpd_req_t *req);

#endif /* _RESPONSE_REQUEST_H_ */